package com.buer.storage.listener;

import com.buer.storage.service.OaSynchronizationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class ApplicationRunnerImpl implements ApplicationRunner {
    @Autowired
    private OaSynchronizationService oaSynchronizationService;
    @Override
    public void run(ApplicationArguments args) throws Exception {
      //启动服务同步sqlserver,库存
        oaSynchronizationService.synchronizationOa();
    }
}